<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <title>我的收藏_{:C('site.sitename')}</title>
                <link rel="stylesheet" type="text/css" href="__USERS__/css/user_style.css" />
		<link rel="stylesheet" type="text/css" href="__USERS__/css/user_index.css" />
		<script type="text/javascript" src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>	

        </head>
	<body>

		<!--顶部-->
		{include file="user/userheader" /}

		<!--User Start-->
		<div class="main">
			<!--左导航-->
			{include file="user/userltnav" /}


			<!--Start-->   
			<!--度假线路 Start-->
			<div class="uc-rigbox2">
				<div class="uc-title"><h3>我的收藏</h3></div>
				{notempty name="userline"}
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="uc-tab">
						<tr>
							<td class="left">产品信息</td>
							<td>参考价</td>
							<td>收藏时间</td>
							<td>操作</td>
						</tr>
						<div id="mainContent">
							{volist name="userline" id="line"}
								<tr>
									<td class="left"><a href="{$line.url}"><img src="{$line.images_full}" width="50" height="50"/>{$line.title}</a></td>
									<td width="8%" class="price"><span>¥ {$line.price}</span></td>
									<td width="13%"><span class="date">{$line.create_time|mdate}</span></td>
									<td width="12%">
										<a href="{$line.url}" class="yuding" target="_blank"  title="预定">预定</a>
										<a href="javascript:;" id="{$line.id}" class="del" title="删除">删除</a>
									</td>
								</tr>
							{/volist}
						</div>

					</table>
					<div class="pages" style="border-top: 1px solid #DDD;">{$page}</div>
					{else /}
					<div class="noinfo">您暂时没有收藏。<a href="{:C('site.siteurl')}">挑挑喜欢的商品去<font style="font-family: '宋体',Arial"> &gt;&gt;</font></a></div> 
				{/notempty}
				<!--当季热卖 Start-->
				<div class="uc-title"><h3>推荐产品</h3></div>
				<div class="uc_xl_in">
					{volist name="tuijian" id="vo"}
						<dl class="uc_xl_box">
							<dt class="uc_xl_pic"><a rel="nofollow" href="{$vo.url}" target="_blank"><img src="{$vo.images_full}" alt="{$vo.title}" /></a></dt>
							<dd class="uc_xl_tit"><a rel="nofollow" href="{$vo.url}" target="_blank">{$vo.title}</a></dd>
							<dd class="uc_xl_jia">¥<font class="h18">{$vo.price}</font><font class="preqi">起</font></dd>
						</dl>
					{/volist}
				</div>
				<!--当季热卖 End-->
			</div>
			<!--度假线路 End-->
			<!--User End-->

			<div class="clear"></div>
		</div>
		<!--footer-->
		<include file="userfooter" />
		<script type="text/javascript">
			$(function () {
				//分页
				$('.pages a').click(function () {
					$.get($(this).attr('href'), function (data) {
						$('body').html(data);
					});
					return false;
				});
				//删除



				$(".del").click(function () {
					var self = $(this);
					$.ajax({
						type: "post",
						data: {
							id: self.attr('id')
						},
						url: "/user/cline_del",
						cache: false,
						success: function (data) {
							if (data) {
								window.location.reload();
							}
						}
					});
				});
			});
		</script> 

	</body>
</html>
